package com.hotai.vo.account;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class AccountPeriod {
    private  Integer id;
    private  Integer cid;
    private  Integer sid;
    private  String   name;
    private  String    subject;
    private  Integer   pattern;
    private  Integer  time;
    @DateTimeFormat(pattern="MM-dd")//存到数据库
    @JsonFormat(timezone = "GMT+8", pattern = "MM-dd") //从数据库
    private Date littleDate;
    @DateTimeFormat(pattern="MM-dd")//存到数据库
    @JsonFormat(timezone = "GMT+8", pattern = "MM-dd") //从数据库
    private Date bigDate;
}
